import {ScrollButton} from "./ScrollButton.js";

let test = ScrollButton(document.querySelector(".testScrollButton"));
test.changeContent("jntmkkkkkkkkkkkkkkkkkkkkkkkkkkk");
test.setSize(1);

let out = null;
window.addEventListener("resize", () => {
    clearTimeout(out);
    out = setTimeout(() => {
        test.setSize(1);
    }, 200);
});